
public class homework {

        public static void main(String args[]){
            try{
                int a[] = new int[2];
                System.out.println(a[3]);
            }catch(ArrayIndexOutOfBoundsException e){
                System.out.println("抛出异常：" + e);
            }
            System.out.println("程序结束");
        }
}
